<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>




<c:forEach items="${blogs}" var="blog" varStatus="idx">
    <li>
        <a href=""><div class="publish-time"><fmt:formatDate value="${blog.blogCreateTime}"  type="date" dateStyle="default"/></div></a>
        <a href="<spring:url value="/readBlog?pid=${blog.blogId}"/>"><div class="publish-title">${blog.blogName}</div></a>
        <a href=""><div class="publisher-name">${blog.userName}</div></a>
        <a href=""><img src="<spring:url value="/images/likes.png"/>"></a>
        <a href=""><div class="likes">${blog.blogLikeNum}</div></a>
        <a href=""><img src="<spring:url value="/images/comments.png"/>"></a>
        <a href=""><div class="comments">${blog.blogReplyNum}</div></a>
    </li>
    <hr class="list-line">
</c:forEach>
